//
//  Student.m
//  oc_练习1
//
//  Created by blue on 16/4/13.
//  Copyright (c) 2016年 csx. All rights reserved.
//

#import "Student.h"

@implementation Student
-(void)setName:(NSString *)name{
    _name = name;
}
-(void)setAge:(NSInteger)age{
    _age = age;
}
-(void)setDepartment:(NSString *)department{
    _department = department;
}

-(id)initWithName:(NSString *)name andAge:(NSInteger)age
    andDepartment:(NSString *)department{
    self = [super init];
    if(self){
        _name = name;
        _age = age;
        _department = department;
    }
    return  self;
}

-(NSString *)name{
    return _name;
}
-(NSString *)department{
    return _department;
}
-(NSInteger)age{
    return _age;
}
@end
